/**
 * Created by Administrator on 2017/4/15.
 */
public class ErJiCaiDan {
    public static void main(String[] args){

        java.util.Scanner sc = new java.util.Scanner(System.in);


        while(true){
            //欢迎页面显示一级菜单
            System.out.println("       欢迎登录客服系统");
            System.out.println("==============================");
            System.out.println("        1.话费流量查询");
            System.out.println("        2.充值缴费服务");
            System.out.println("        3.增值服务");
            System.out.println("==============================");
            System.out.print("请选择:");
            int num = sc.nextInt();
            //选择需要办理的对应选项，进入相应菜单

            if(num==1){
                while(true){

                    System.out.print("您已进入话费流量查询");
                    System.out.println(" ");
                    System.out.println("==============================");
                    System.out.println("        1.余额查询");
                    System.out.println("        2.流量查询");
                    System.out.println("        3.返回主菜单");
                    System.out.println("==============================");
                    System.out.print("请选择:");
                    int num1 = sc.nextInt();

                    if(num1==1){
                        System.out.println("1.余额查询");

                    }else if(num1==2){
                        System.out.println("2.流量查询");

                    }else if(num1==3){
                        System.out.println("3.返回主菜单");
                        break;
                    }else{
                        System.out.println("选择错误，请重新选择");
                    }
                }

            } else if(num == 2){
                System.out.println("2.充值缴费服务");
            }else if(num == 3){
                System.out.println("3.增值服务");
                break;
            }else{
                System.out.println("输入有误，请重新选择");
            }

        }

    }
}


